#ifndef __LOG_H
#define __LOG_H

#include <stdint.h>

#define  EEPROM_I2C_WRITE_ADDR    0xA0
#define  EEPROM_I2C_READ_ADDR     0xA1

#define  SINGLE_LOG_MAX_LEN       32
#define  LOG_INDEX_NUM            15


//eeprom page size  16 byte
#define    EEPROM_I2C_PAGE_SIZE         16
#define    EEPROM_I2C_PAGE_NUM          16
#define    EEPROM_I2C_INDEX_PAGE        1

#define    EEPROM_I2C_INDEX_DEV_ADDR      0
#define    EEPROM_I2C_HEADER_OFFSET       32

void send_log_to_soc(void);
int mcu_log_write(char *msg);
extern uint8_t start_transfer_flag;


#endif
